/* eslint-disable */

export default class Helper {

  static getUrlParams = (path) => {
    let reg = new RegExp(/\+?/).test(path);
    var sHref = path || window.location.href;
    
    if (reg) {
      var args = sHref.split('?');
      if(args[0] == sHref){
          return "";
      }
      var arr = args[1].split('&');
      var urlParams = {};
      for(var i = 0;i< arr.length;i++){
          var arg = arr[i].split('=');
          urlParams[arg[0]] = arg[1];
      }
      return urlParams;
    }
    return false
  }
}
